package com.xcf.service.business.common.goodsMaintain.impl;

import java.util.List;

import javax.annotation.Resource;


import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.entity.Page;
import com.xcf.service.business.common.goodsMaintain.GoodsMaintainService;
import com.xcf.util.PageData;
@Service("GoodsMaintainServiceImpl")
public class GoodsMaintainServiceImpl  implements GoodsMaintainService{
	@Resource(name="daoSupport")
	private DaoSupport daoSupport;

	//列表的显示
	@Override
	public List<PageData> seach(PageData pd) throws Exception {
		
		return (List<PageData>) daoSupport.findForList("goodsmaintainMapper.seach", pd);
	}

	//删除
	@Override
	public void deleteU(PageData pd) throws Exception {
		daoSupport.delete("goodsmaintainMapper.deleteU", pd);
		
	}

	//保存
	@Override
	public void saveInfo(PageData pd) throws Exception {
		daoSupport.save("goodsmaintainMapper.saveInfo", pd);
		
	}

	//修改
	@Override
	public void editInfo(PageData pd) throws Exception {
		daoSupport.update("goodsmaintainMapper.editInfo",pd);	
		
	}

}
